<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Dom.canvas.html">
<link rel="next" href="Dom.canvasGradient.html">
<link rel="Up" href="Dom.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Dom" rel="Chapter" href="Dom.html">
<link title="Gears" rel="Chapter" href="Gears.html">
<link title="Javascript" rel="Chapter" href="Javascript.html">
<link title="Jslib_ast" rel="Chapter" href="Jslib_ast.html">
<link title="Jslib_lexer" rel="Chapter" href="Jslib_lexer.html">
<link title="Jslib_parse" rel="Chapter" href="Jslib_parse.html">
<link title="Jslib_pp" rel="Chapter" href="Jslib_pp.html">
<link title="Lwt" rel="Chapter" href="Lwt.html">
<link title="Lwt_dom" rel="Chapter" href="Lwt_dom.html">
<link title="Lwt_mutex" rel="Chapter" href="Lwt_mutex.html">
<link title="Lwt_pool" rel="Chapter" href="Lwt_pool.html">
<link title="Lwt_timeout" rel="Chapter" href="Lwt_timeout.html">
<link title="Lwt_util" rel="Chapter" href="Lwt_util.html">
<link title="Mozilla" rel="Chapter" href="Mozilla.html">
<link title="Ocamljs" rel="Chapter" href="Ocamljs.html"><title>Dom.canvasRenderingContext2D</title>
</head>
<body>
<div class="navbar"><a href="Dom.canvas.html">Previous</a>
&nbsp;<a href="Dom.html">Up</a>
&nbsp;<a href="Dom.canvasGradient.html">Next</a>
</div>
<center><h1>Class type <a href="type_Dom.canvasRenderingContext2D.html">Dom.canvasRenderingContext2D</a></h1></center>
<br>
<pre><span class="keyword">class type</span> <a name="TYPEcanvasRenderingContext2D"></a>canvasRenderingContext2D = <code class="code">object</code> <a href="Dom.canvasRenderingContext2D.html">..</a> <code class="code">end</code></pre><hr width="100%">
<pre><span class="keyword">method</span> <a name="METHOD_get_canvas"></a>_get_canvas : <code class="type"><a href="Dom.canvas.html">canvas</a></code></pre><pre><span class="keyword">method</span> <a name="METHODsave"></a>save : <code class="type">unit</code></pre><pre><span class="keyword">method</span> <a name="METHODrestore"></a>restore : <code class="type">unit</code></pre><pre><span class="keyword">method</span> <a name="METHODscale"></a>scale : <code class="type">float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODrotate"></a>rotate : <code class="type">float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODtranslate"></a>translate : <code class="type">float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODtransform"></a>transform : <code class="type">float -> float -> float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODsetTransform"></a>setTransform : <code class="type">float -> float -> float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_globalAlpha"></a>_get_globalAlpha : <code class="type">float</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_globalAlpha"></a>_set_globalAlpha : <code class="type">float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_globalCompositeOperation"></a>_get_globalCompositeOperation : <code class="type">string</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_globalCompositeOperation"></a>_set_globalCompositeOperation : <code class="type">string -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_strokeStyle"></a>_get_strokeStyle : <code class="type">string</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_strokeStyle"></a>_set_strokeStyle : <code class="type">string -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_strokeStyle_canvasGradient_"></a>_get_strokeStyle_canvasGradient_ : <code class="type"><a href="Dom.canvasGradient.html">canvasGradient</a></code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_strokeStyle_canvasGradient_"></a>_set_strokeStyle_canvasGradient_ : <code class="type"><a href="Dom.canvasGradient.html">canvasGradient</a> -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_strokeStyle_canvasPattern_"></a>_get_strokeStyle_canvasPattern_ : <code class="type"><a href="Dom.canvasPattern.html">canvasPattern</a></code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_strokeStyle_canvasPattern_"></a>_set_strokeStyle_canvasPattern_ : <code class="type"><a href="Dom.canvasPattern.html">canvasPattern</a> -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_fillStyle"></a>_get_fillStyle : <code class="type">string</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_fillStyle"></a>_set_fillStyle : <code class="type">string -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_fillStyle_canvasGradient_"></a>_get_fillStyle_canvasGradient_ : <code class="type"><a href="Dom.canvasGradient.html">canvasGradient</a></code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_fillStyle_canvasGradient_"></a>_set_fillStyle_canvasGradient_ : <code class="type"><a href="Dom.canvasGradient.html">canvasGradient</a> -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_fillStyle_canvasPattern_"></a>_get_fillStyle_canvasPattern_ : <code class="type"><a href="Dom.canvasPattern.html">canvasPattern</a></code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_fillStyle_canvasPattern_"></a>_set_fillStyle_canvasPattern_ : <code class="type"><a href="Dom.canvasPattern.html">canvasPattern</a> -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODcreateLinearGradient"></a>createLinearGradient : <code class="type">float -> float -> float -> float -> <a href="Dom.canvasGradient.html">canvasGradient</a></code></pre><pre><span class="keyword">method</span> <a name="METHODcreateRadialGradient"></a>createRadialGradient : <code class="type">float -> float -> float -> float -> float -> float -> <a href="Dom.canvasGradient.html">canvasGradient</a></code></pre><pre><span class="keyword">method</span> <a name="METHODcreatePattern"></a>createPattern : <code class="type"><a href="Dom.image.html">image</a> -> string -> <a href="Dom.canvasPattern.html">canvasPattern</a></code></pre><pre><span class="keyword">method</span> <a name="METHODcreatePattern_canvas_"></a>createPattern_canvas_ : <code class="type"><a href="Dom.canvas.html">canvas</a> -> string -> <a href="Dom.canvasPattern.html">canvasPattern</a></code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_lineWidth"></a>_get_lineWidth : <code class="type">float</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_lineWidth"></a>_set_lineWidth : <code class="type">float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_lineCap"></a>_get_lineCap : <code class="type">string</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_lineCap"></a>_set_lineCap : <code class="type">string -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_miterLimit"></a>_get_miterLimit : <code class="type">float</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_miterLimit"></a>_set_miterLimit : <code class="type">float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_shadowOffsetX"></a>_get_shadowOffsetX : <code class="type">float</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_shadowOffsetX"></a>_set_shadowOffsetX : <code class="type">float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_shadowOffsetY"></a>_get_shadowOffsetY : <code class="type">float</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_shadowOffsetY"></a>_set_shadowOffsetY : <code class="type">float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_shadowBlur"></a>_get_shadowBlur : <code class="type">float</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_shadowBlur"></a>_set_shadowBlur : <code class="type">float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_shadowColor"></a>_get_shadowColor : <code class="type">string</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_shadowColor"></a>_set_shadowColor : <code class="type">string -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODclearRect"></a>clearRect : <code class="type">float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODfillRect"></a>fillRect : <code class="type">float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODstrokeRect"></a>strokeRect : <code class="type">float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODbeginPath"></a>beginPath : <code class="type">unit</code></pre><pre><span class="keyword">method</span> <a name="METHODclosePath"></a>closePath : <code class="type">unit</code></pre><pre><span class="keyword">method</span> <a name="METHODmoveTo"></a>moveTo : <code class="type">float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODlineTo"></a>lineTo : <code class="type">float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODquadraticCurveTo"></a>quadraticCurveTo : <code class="type">float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODbezierCurveTo"></a>bezierCurveTo : <code class="type">float -> float -> float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODarcTo"></a>arcTo : <code class="type">float -> float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODrect"></a>rect : <code class="type">float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODarc"></a>arc : <code class="type">float -> float -> float -> float -> float -> bool -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODfill"></a>fill : <code class="type">unit</code></pre><pre><span class="keyword">method</span> <a name="METHODstroke"></a>stroke : <code class="type">unit</code></pre><pre><span class="keyword">method</span> <a name="METHODclip"></a>clip : <code class="type">unit</code></pre><pre><span class="keyword">method</span> <a name="METHODisPointInPath"></a>isPointInPath : <code class="type">float -> float -> bool</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_font"></a>_get_font : <code class="type">string</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_font"></a>_set_font : <code class="type">string -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_textAlign"></a>_get_textAlign : <code class="type">string</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_textAlign"></a>_set_textAlign : <code class="type">string -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHOD_get_textBaseline"></a>_get_textBaseline : <code class="type">string</code></pre><pre><span class="keyword">method</span> <a name="METHOD_set_textBaseline"></a>_set_textBaseline : <code class="type">string -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODfillText"></a>fillText : <code class="type">string -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODfillText_maxWidth_"></a>fillText_maxWidth_ : <code class="type">string -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODstrokeText"></a>strokeText : <code class="type">string -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODstrokeText_maxWidth_"></a>strokeText_maxWidth_ : <code class="type">string -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODmeasureText"></a>measureText : <code class="type">string -> <a href="Dom.textMetrics.html">textMetrics</a></code></pre><pre><span class="keyword">method</span> <a name="METHODdrawImage"></a>drawImage : <code class="type"><a href="Dom.image.html">image</a> -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODdrawImage_5_"></a>drawImage_5_ : <code class="type"><a href="Dom.image.html">image</a> -> float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODdrawImage_9_"></a>drawImage_9_ : <code class="type"><a href="Dom.image.html">image</a> -><br>       float -> float -> float -> float -> float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODdrawImage_canvas_"></a>drawImage_canvas_ : <code class="type"><a href="Dom.canvas.html">canvas</a> -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODdrawImage_canvas_5_"></a>drawImage_canvas_5_ : <code class="type"><a href="Dom.canvas.html">canvas</a> -> float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODdrawImage_canvas_9_"></a>drawImage_canvas_9_ : <code class="type"><a href="Dom.canvas.html">canvas</a> -><br>       float -> float -> float -> float -> float -> float -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODcreateImageData"></a>createImageData : <code class="type">float -> float -> <a href="Dom.imageData.html">imageData</a></code></pre><pre><span class="keyword">method</span> <a name="METHODgetImageData"></a>getImageData : <code class="type">float -> float -> float -> float -> <a href="Dom.imageData.html">imageData</a></code></pre><pre><span class="keyword">method</span> <a name="METHODputImageData"></a>putImageData : <code class="type"><a href="Dom.imageData.html">imageData</a> -> float -> float -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODputImageData_7_"></a>putImageData_7_ : <code class="type"><a href="Dom.imageData.html">imageData</a> -> float -> float -> float -> float -> float -> float -> unit</code></pre></body></html>